package com.bigmi.controller;

import com.bigmi.domain.Student;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class freeController {

    @GetMapping("test")
    public String dome(Model model){
       model.addAttribute("name","bigmi");
        Student stu=new Student();
        stu.setAge(18);
        stu.setName("lele");
        model.addAttribute("stu",stu);
        return "basic";
    }
}
